/*
 * GenerarBaseHelper.java
 *
 * Created on 12 de febrero de 2007, 10:05 AM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package com.src.computec.radar.consultas.generarbase.helper;

import com.src.computec.radar.consultas.base.helper.BaseHelper;
import com.src.computec.radar.consultas.generarbase.dao.BaseGenerarBaseDAO;
import com.src.computec.radar.consultas.generarbase.exception.GenerarBaseException;
import com.src.computec.radar.consultas.thread.GenerarBaseThread;
import java.util.List;

/**
 *
 * @author aocampo
 */
public class GenerarBaseHelper extends BaseHelper {
    
    /** Creates a new instance of GenerarBaseHelper */
    public GenerarBaseHelper() {
    }   
    
    public void createNewFileBase(List listNumerosOrdenes, boolean conInsertos, boolean conTipoDestinoCliente, String ldapUser) throws GenerarBaseException {
        BaseGenerarBaseDAO dao = (BaseGenerarBaseDAO) this.getFactoryDAO().getGenerarBaseDAO();
        Thread thread = new Thread(new GenerarBaseThread(dao, listNumerosOrdenes, conInsertos, conTipoDestinoCliente, ldapUser));
        thread.start();
    }
}